package cn.tramy.pinxian.task

import cn.tramy.pinxian.wind.configuration.annotation.EnableWind
import cn.tramy.pinxian.wind.domain.repository.WindRepositoryImpl
import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.data.jpa.repository.config.EnableJpaRepositories

@SpringBootApplication
//@EnableTransactionManagement
@EnableWind
@EntityScan(basePackageClasses = [TaskApplication::class])
@EnableJpaRepositories(basePackageClasses = [TaskApplication::class], repositoryBaseClass = WindRepositoryImpl::class)
@MapperScan("cn.tramy.pinxian.task.query.dao")
class TaskApplication


fun main(args: Array<String>) {
    SpringApplication.run(TaskApplication::class.java, *args)
}